package cn.me.controller;

import cn.me.pojo.Payrank;
import cn.me.service.PayRankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/payrank")
public class PayRankController {
    @Autowired
    private PayRankService payRankService;
    @RequestMapping("/all")
    public String all(Model model){
        List<Payrank> payRank = payRankService.all();
        model.addAttribute("payRank",payRank);
        return "payRankList";
    }

}
